package com.neuedu.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class RoleController {


    /**
     * http://localhost:8080/springmvc07/deal?numa=10&numb=5
     * @param model
     * @param numa
     * @param numb
     * @return
     */
    @RequestMapping("/deal")
    public String deal(Model model, int numa , int numb ){

        int result  = numa / numb;

        System.out.println("result = " + result);
        model.addAttribute("result",result);

        return  "user/user_result";
    }








}
